<?php
/**
 * Common Template - tpl_box_default_left.php
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_box_default_left.php 2975 2006-02-05 19:33:51Z birdbrain $
 */

// choose box images based on box position
  if ($title_link) {
    $title = '<a href="' . zen_href_link($title_link) . '">' . $title . BOX_HEADING_LINKS . '</a>';
  }
//
?>
<!--// bof: recently viewed //-->

<div class="margin_t bg_bb" id="<?php echo str_replace('_', '-', $box_id ); ?>">
    <h2 class="in_1em hand" onclick="ShowHiddenDiv();"><?php echo $title; ?><img style="margin:0 30px" border="0" src="images/arrow.gif" id="rv_arrow" /></h2>
    <div id="hline"><span></span></div>
    <div id="recentviews" style="display:none;">
    <?php echo $content; ?>
    </div>
</div>
<div class="clear"></div>
<!--// eof: recently viewed //-->

<script language="javascript" type="text/javascript">
<!--
function ShowHiddenDiv(){
	var obj = document.getElementById("recentviews");
	if(obj.style.display == "block"){
		obj.style.display = "none";
		document.getElementById("rv_arrow").src = "images/arrow.gif";
	}else{
		obj.style.display = "block";
		document.getElementById("rv_arrow").src = "images/arrowb.gif";
	}
}
-->
</script>